package com.zhbr.mvp.contract;

import com.zhbr.entity.Account;
import com.zhbr.mvp.base.model.IModel;
import com.zhbr.mvp.base.view.IView;

import java.util.Map;

import rx.Subscriber;

public class RegisterContract {

    public interface View extends IView {
        /**
         * 成功
         */
        void onRegisterSuccess(Account data);
        /**
         * 失败
         */
        void onRegisterFail(Throwable ex, String code, String msg);

    }

    public interface Presenter {
        void register(String nickname,String phone, String password);
    }

    public interface Model extends IModel {
        /**
         * 注册
         */
        void register(Map map, Subscriber subscriber);
    }

}
